package com.yimils.core.sys.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.yimils.core.sys.entity.RoleEntity;
import com.yimils.core.sys.po.UserRoleDo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper extends BaseMapper<RoleEntity> {
   List<UserRoleDo> getRolesByUserId(@Param("userId") Long userId);
   int addUserRole();

}
